package cn.itcast.domain;

import org.springframework.stereotype.Component;

@Component
public class Student {

    private String sno;

    private String password;

    private String sname;

    private String sex;

    private Integer classno;

    private String remark;

    private String grade;

    public Student() {
    }

    public Student(String sno, String password, String sname, String sex, Integer classno, String remark, String grade) {
        this.sno = sno;
        this.password = password;
        this.sname = sname;
        this.sex = sex;
        this.classno = classno;
        this.remark = remark;
        this.grade = grade;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getClassno() {
        return classno;
    }

    public void setClassno(Integer classno) {
        this.classno = classno;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sno='" + sno + '\'' +
                ", password='" + password + '\'' +
                ", sname='" + sname + '\'' +
                ", sex='" + sex + '\'' +
                ", classno=" + classno +
                ", remark='" + remark + '\'' +
                ", grade='" + grade + '\'' +
                '}';
    }
}
